package com.stylefeng.guns.modular.cash.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * Created by Owner on 2018/7/6.
 */
public class CashExpenditureWarpper extends BaseControllerWarpper {
    public CashExpenditureWarpper(List<?> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("platformName", ConstantFactory.me().getDeptNameByCode( map.get("platform").toString()));
        map.put("moneyTypeName", ConstantFactory.me().getDictsByName("币种",(Integer)  map.get("moneyType")));
        map.put("typeName", ConstantFactory.me().getDictsByName("收支类型",(Integer)  map.get("type")));
        map.put("detailsName", ConstantFactory.me().getDetailsName((Integer)  map.get("type")));
    }
}
